"use strict"
Object.defineProperty(exports, "__esModule", {value: true})
const node_1 = require("vscode-languageserver/node")
const connection = (0, node_1.createConnection)()
let notified = false
connection.onInitialize((_params) => {
  return {
    capabilities: {}
  }
})

connection.onRequest('request', (param) => {
  return param.value + 1
})

connection.onNotification('notification', () => {
  notified = true
})

connection.onRequest('notified', () => {
  return {notified}
})

connection.onRequest('triggerRequest', async () => {
  await connection.sendRequest('request')
})

connection.onNotification('triggerNotification', async () => {
  await connection.sendNotification('notification', {x: 1})
})

connection.listen()
